package com.rd.student.jiaji.class1.jinhongyu.day0802;

public class Test {
    public static void main(String[] args) {
        Animal cat = Store.getInstance("cat");
        Animal dog = Store.getInstance("dog");

        Lady zhangLady = new Lady("张女士", cat);
        zhangLady.myPetEnjoy();

        Lady wangLady = new Lady("王女士", dog);
        wangLady.myPetEnjoy();
    }
}

